fix: added post-deployment script/command visible in the terminal after deployment.#483
Merged
Merged
Conversation
VishalSh-Microsoft
requested review from
Avijit-Microsoft,
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay-Microsoft,
aniaroramsft,
dgp10801,
nchandhi and
toherman-msft
as code owners
July 23, 2026 10:02
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an azd postprovision hook to improve the post-provisioning developer experience by printing next-step guidance and the provisioned web app URL in the terminal.
Changes:
- Added a
postprovisionhook toazure.yaml. - Implemented platform-specific messaging for Windows (PowerShell) and POSIX (sh).
- Displays the
WEB_APP_URLenvironment value after provisioning.
Comments suppressed due to low confidence (1)
azure.yaml:64
- For consistency with the documented instructions (docs/DeploymentGuide.md), prefer
bash scripts/build_and_push_images.sh(no leading./) in the POSIX message so users can copy/paste the same command shown in the guide.
echo "=> Next step: build and push container images to the dedicated ACR (remote build):"
echo " bash ./scripts/build_and_push_images.sh"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
azure.yaml:66
$WEB_APP_URLmay not be exported into the hook’s shell environment even though it exists in the azd environment. To avoid printing an empty URL, fall back toazd env get-value WEB_APP_URLwhen the variable is unset/empty (this matches the pattern used in scripts/build_and_push_images.sh).
echo ""
echo "Web app URL: $WEB_APP_URL"
Roopan-Microsoft
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request adds a new
postprovisionhook to theazure.yamlconfiguration, enhancing the developer experience after provisioning is complete. The hook provides clear instructions for the next steps and displays the web app URL, with tailored messages for both Windows and POSIX environments.Enhancements to provisioning workflow:
postprovisionhook toazure.yamlthat outputs a completion message, next-step instructions for building and pushing container images, and the web app URL after provisioning. The hook provides platform-specific guidance for both Windows (PowerShell) and POSIX (sh) environments.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation